package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-06-21
 * Time: 20:41
 */
public abstract class Employee {
    public String name;
    public int id;
    public int salary;

    //构造方法
    public Employee(String name,int id,int salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }
    //抽象方法
    public abstract void work();
}
